Northwoods.GoSilverlight 1.3.5 Assembly
FindElementUpFrom(FrameworkElement,Func<FrameworkElement,Nullable<Boolean>>,Predicate<FrameworkElement>) Method
See Also  Send Feedback
Northwoods.GoXam.Tool Namespace > DiagramTool Class > FindElementUpFrom Method : FindElementUpFrom(FrameworkElement,Func<FrameworkElement,Nullable<Boolean>>,Predicate<FrameworkElement>) Method

elt
a FrameworkElement
pred
When this predicate and valid are both true, return that element, When this predicate is false, return null. Otherwise continue up the parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
valid
a predicate that must be true for an element for it to be returned by this method
Search up the chain of visual parent elements starting with the given element to find one that has pred true and valid true.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overridable Function FindElementUpFrom( _
   ByVal elt As FrameworkElement, _
   ByVal pred As Func(Of FrameworkElement,Nullable(Of Boolean)), _
   ByVal valid As Predicate(Of FrameworkElement) _
) As FrameworkElement

Parameters

elt
a FrameworkElement
pred
When this predicate and valid are both true, return that element, When this predicate is false, return null. Otherwise continue up the parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
valid
a predicate that must be true for an element for it to be returned by this method

Requirements

See Also

© 2012 All Rights Reserved.